package com.seu.me.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by liangfeihu on 2017/11/28.
 */
@Slf4j
@Controller
@RequestMapping("/me/seu")
public class LearnController {

    @RequestMapping(value = "/learn", method = RequestMethod.GET)
    public String getMyLearnJsp(HttpServletRequest request) {
        log.info("RequestURI={}", request.getRequestURI());
        log.error("RequestURL={}", request.getRequestURL());
        log.info("ContextPath={}", request.getContextPath());
        log.error("ServletPath={}", request.getServletPath());
        log.info("RemoteAddr={}", request.getRemoteAddr());
        log.info("ServerPort={}", request.getServerPort());
        return "learn";
    }

    @RequestMapping(value = "/activemq", method = RequestMethod.GET)
    public String getMyActiveMQJsp(HttpServletRequest request) {
        log.info("RequestURI={}", request.getRequestURI());
        log.error("RequestURL={}", request.getRequestURL());
        log.info("ContextPath={}", request.getContextPath());
        log.error("ServletPath={}", request.getServletPath());
        log.info("RemoteAddr={}", request.getRemoteAddr());
        log.info("ServerPort={}", request.getServerPort());
        return "activemq";
    }
}
